/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tweetbotserver.server.message;

import tweetbotserver.robot.comms.BotMessage;

/**
 *
 * @author Mike
 */
public class EchoMessageProcessor implements MessageProcessor<String> {

    @Override
    public BotMessage parseData(String data) {
        BotMessage result = new BotMessage<String>(data);
        return result;
    }

    @Override
    public String parseBotMessage(BotMessage<String> botMessage) {

        System.out.println(botMessage);
        String result = botMessage.getContent();
        return result;
    }
}
